// -----------------------------------------------------------------------
//  <copyright file="MiddlewareBase.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024-04-10 2:01</last-date>
// -----------------------------------------------------------------------

namespace DaprPlus.AspNetCore.Middleware;

/// <summary>
/// 约定一个中间件基类，没啥大用，主要懒得记它的格式
/// </summary>
/// <param name="next"></param>
public abstract class MiddlewareBase(RequestDelegate next)
{
    /// <summary>
    /// 执行中间件拦截逻辑
    /// </summary>
    /// <param name="context">Http上下文</param>
    /// <returns></returns>
    public abstract Task InvokeAsync(HttpContext context);
}
